package com.dks.repository;

import java.util.*;
import com.dks.models.QsMail;
import com.dks.result.ResultModel;

public interface IQsMailRepository {

    Integer insert(QsMail qsMail);

    Integer update(QsMail qsMail);

    Integer delete(Integer id);

    QsMail select(Integer id);

    Integer cntByMap(Map<String, Object> map);

    List<Integer> getByMap(Map<String, Object> map);

    List<QsMail> getByMapList(Map<String, Object> map);

    Integer updateByCode(QsMail qsMail);

    QsMail selectByBfCode(String bfCode);

    ResultModel<Object> getQsMailList(Integer userId, Integer mainTitleStatus, Integer pageNum, Integer pageSize);

    ResultModel<Object> getQsMailInfo(Integer userId, Integer mainTitleStatus);

    ResultModel<Object> getQsMailUnReadCount(Integer userId);

    ResultModel<Object> readAllQsMail(long userId);
}
